package com.util;

public class RandomUtil {

    public static double random(){
        return  Math.random();
    }

    public static int rangeRandom(int i){
        int result = (int) (random() * i);
        return  result;
    }

    public static void main(String[] args) {
        for(int i=0; i< 100; i++){
            System.out.println(rangeRandom(i));
        }
    }
}
